package com.paul.sys.mapper;

import com.paul.sys.model.Ptstaff;
import com.paul.sys.model.Syrole;
import com.paul.sys.tools.CommPageBean;
import org.apache.ibatis.annotations.Param;

import java.util.*;

public interface SyroleMapper {
    int delete(String unid);

    int insert(Syrole record);
    Syrole selectById(String unid);

    int update(Syrole record);
    List<Map> roleNamejudge(String rolename);
    int menuLinkEnableByRole(Map param);
    List<Map> getTreebyRole(String roleunid);
    List<Map> getSimulationMessage();
    List<Syrole> listRole(Map<String, String> param);
    List<Syrole> listByPage(@Param("param") Map<String, String> param, @Param("page") CommPageBean pageBean);

    List<Ptstaff> getUserbyRoleByPage(@Param("roleunid") String roleunid, @Param("page") CommPageBean pageBean);
}